import request from '@/utils/request'

export const login = data => request({
  url: '/sys/login',
  method: 'POST',
  data
})

// 封装获取用户资料  2
export const getUserInfo = () => request({
  url: '/sys/profile'
})

// 修改密码

export const updatePassword = data => request({
  url: '/sys/user/updatePass',
  method: 'put',
  data
})

